$(function(){
	$(".select_rating input").each(function(){
		$(this).on("click",function(){
			var rating = $("input:radio[name='rating']:checked").val();
			$(".select_rating").attr("id","bg_review_star" + rating);
		});
	});

	if($("#fixedProductInfo").size() >= 1){
		$(window).on("scroll",function(){
			if($(window).scrollTop() > $("#fixedProductTrigger").offset().top){
				$("#fixedProductInfo").show();
			}else{
				$("#fixedProductInfo").hide();
			}
		});
	}
})
